home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / p / pofo / sprachen / pbasic / pbas41 / pbasic.adr < prev    next >
Encoding:
Text File  |  1991-02-18  |  11.1 KB  |  611 lines

  1. ABS(exp)
  2. Returns absolute value of exp.
  3.  
  4. ACOS(exp)
  5. Returns the arc cosine of exp.
  6.  
  7. ADDRESS of BJ Gleason
  8. The American University
  9. CSIS  (Thin Air Labs)
  10. 4400 Massachusetts Avenue, N.W.
  11. Washington, DC  20016
  12. Compuserve : 73337,2011
  13.  
  14. ALARM
  15. Beep speaker, Wait for keypress.
  16. PORT ONLY
  17.  
  18. ALTR.COM
  19. TSR to invoke P.EXE from editor
  20. <ALT><R> to Execute
  21.  
  22. ASC(x$)
  23. Returns ASCII value of the first
  24. character in x$.
  25.  
  26. ASIN(exp)
  27. Returns the arc sine of exp.
  28.  
  29. ATN(exp)
  30. Returns Arc Tangent of exp.
  31.  
  32. BEEP
  33. Single beep from the speaker.
  34. PORT ONLY
  35.  
  36. BIN$(n)
  37. Converts n to a binary string.
  38.  
  39. BLOAD filename, offset
  40. Load Binary file to SEG:offset.
  41.  
  42. BOX       row1, col1, row2, col2, type
  43. Draw a box.  Row1 and Col1 specify the
  44. upper left corner position of the box,
  45. Row2 and Col2 specify the lower right.
  46. Type 0 for single line, 1 for a double
  47. PORT ONLY
  48.  
  49. BSAVE filename, offset, length
  50. Save binary image of length bytes at
  51. SEG:offset to filename.
  52.  
  53. BREAK - Atari key (/|\)
  54.  
  55. CALL address
  56. Transfer control to SEG:address.
  57.  
  58. CALL INTERRUPT intnum
  59. Invoke DOS interrupt intnum.
  60.  
  61. CHAIN filename
  62. Load and execute filename.BAS.  All
  63. variables are preserved.
  64.  
  65. CHDIR pathname
  66. Change directory to pathname.
  67.  
  68. CHR$(n)
  69. Returns ASCII char of the value n.
  70.  
  71. CLICK
  72. Make the key click sound.
  73. PORT ONLY
  74.  
  75. CLOSE #fileno
  76. Close a file.
  77.  
  78. CLS
  79. Clears the screen.
  80.  
  81. COMMAND$
  82. Return the command line that started
  83. PBASIC.
  84.  
  85. COS(exp)
  86. Returns cosine of exp.
  87.  
  88. COSH(exp)
  89. Returns hyperbolic cosine of exp.
  90.  
  91. CSRLIN
  92. Returns current cursor line.
  93.  
  94. DATA      list of numbers/strings
  95. MUST have a line number.
  96. Elements separted by commas
  97. Strings must be enclosed in quotes.
  98. 12 DATA 1,2,3,4,5,6
  99.  
  100. DATE$
  101. Returns system date.
  102.  
  103. DECR(n)
  104. Decrement n by 1.
  105.  
  106. DEF SEG   = exp
  107. Assigns a segment address for memory
  108. accessing via PEEK, POKE and CALL.
  109. DEG(exp)
  110. Convert radians to degrees.
  111.  
  112. DIAL      string
  113. Dial the "number" through the speaker.
  114. Valid tones are: 0 1 2 3 4 5 6 7 8
  115. 9 A B C D * #.
  116. PORT ONLY
  117.  
  118. DIM       var(size,[size]){,var(size)}
  119. Dimension Float or String Arrays
  120.  
  121. DISPLAY   exp
  122. 0=Static, 1=Normal, 2=Tracked
  123. PORT ONLY
  124.  
  125. DMS(exp)
  126. Convert degrees to degree.minsec
  127.  
  128. EDITOR
  129. Name PBASIC.EXE P.EXE
  130. Returns to Editor on Error
  131.  
  132. END
  133.  
  134. EOF(fileno)
  135. Test for End of File.
  136.  
  137. ERL
  138. Returns the linenumber of the last
  139. error.
  140.  
  141. ERR
  142. Returns the error number of the last
  143. error.
  144.  
  145. ERROR errnum
  146. Simulate Error.
  147.  
  148. ERRORLEVEL
  149. Code generated upon exit.
  150. 0 - Successful exit
  151. 1 - Program aborted
  152. 2 - STOP encountered
  153.  
  154. ERRWIN    row, col, "message"
  155. Display message at row, col.  Beep and
  156. wait for keypress.
  157. PORT ONLY
  158.  
  159. EVAL x$
  160. Evaluate x$ as part of a PBASIC program.
  161. x$ MUST be a string variable.
  162.  
  163. EXP(exp)
  164. Returns e to the power of exp.
  165.  
  166. FALSE
  167. Returns 0.
  168.  
  169. FIX(exp)
  170. Returns integer portion of exp.
  171.  
  172. FORMFEED
  173. Send a formfeed to the printer.
  174.  
  175. FOR       var = exp TO exp [STEP exp]
  176.  
  177. FRE(exp)
  178. Returns free amount of memory.
  179. Parameter exp is a dummy expression.
  180.  
  181. GETDISPLAY
  182. Returns the current display
  183. mode.  See DISPLAY for details.
  184. PORT ONLY
  185.  
  186. GOSUB     line number
  187.  
  188. GOTO      line number
  189.  
  190. HEX$(n)
  191. Converts n to a hexidecmial string.
  192.  
  193. IF        exp THEN stmt [ ELSE stmt ]
  194.  
  195. INCR(n)
  196. Increment n by 1.
  197.  
  198. INKEY$
  199. If a key is pressed, char is returned,
  200. otherwise, the empty string ("").
  201.  
  202. INPUT     ["prompt" (,|;)] varname
  203. [,] no ?, [;] ? is printed
  204.  
  205. INPUT #fileno, varname [,varname...]
  206. Read data from a file.
  207.  
  208. INP(port)
  209. Returns byte value from port.
  210.  
  211. INPUT$(n,#fileno)
  212. Return n character from #fileno.
  213.  
  214. INSTR(x$,y$)
  215. Returns position of y$ in x$.
  216.  
  217. INT(exp)
  218. Returns integer portion of exp.
  219.  
  220. KILL filename
  221. Delete filename from disk.
  222.  
  223. LCASE$ x$
  224. Returns the lower case version of x$.
  225.  
  226. LEFT$(x$,n)
  227. Returns leftmost n characters of x$.
  228.  
  229. LEN(x$)
  230. Returns the length of x$.
  231.  
  232. LOCATE    row,col[,cur]
  233. Move the cursor to row, col.
  234. 1,1 is top left.
  235. cur = 0-off, 1-underline, 2-block
  236.  
  237. LOG(exp)
  238. Returns natural log of exp.
  239.  
  240. LPOS(exp)
  241. Returns position of line printer head.
  242. Exp is a dummy expression.
  243.  
  244. LTRIM$(n$)
  245. Returns n$ with no leading spaces.
  246.  
  247. LPRINT    list of expressions
  248. Send output to printer.  See PRINT.
  249.  
  250. MENU(row, col, display, topline, selected, elements, "Title",entries)
  251. Display menu, result%256=entry, result\256=topline
  252. Display is number of elements to show
  253. Topline is element at top
  254. Selected is cursor element
  255. Element is number of entries + title
  256.  
  257. MID$(x$,n,m)
  258. Returns string from x$, starting at
  259. position n for m characters.
  260.  
  261. MSD(exp)
  262. Convert Degrees.minsec to degrees.
  263.  
  264. MKDIR     pathname
  265. Make a directory called pathname.
  266.  
  267. NEXT      [var]
  268.  
  269. NUMFMT = "format"
  270. Default number format.  "% g " for GWBASIC.
  271. "%e" scientific.
  272.  
  273. OCT$(n)
  274. Converts n to an Octal string.
  275.  
  276. OFF
  277. Tunr off until keypress.
  278. PORT ONLY
  279.  
  280. ON ERROR GOTO line number
  281. Transfer to line number on error.
  282.  
  283. ON ERROR GOTO 0
  284. Disable error trapping.
  285.  
  286. ON        exp  GOSUB list of line numbers
  287.  
  288. ON        exp  GOTO  list of line numbers
  289.  
  290. OUT       port, exp
  291. Send value to the indicated port.
  292.  
  293. OPEN "mode", fileno, filename
  294. Opens a file for access.  "mode" is "I" input,
  295. "O" output, and "A" append.
  296.  
  297. PBASIC filename.ext [-T]
  298. Use filename.ext
  299. Default .ext is .BAS
  300. -T turns on Line Trace
  301.  
  302. PBASIC [-T]
  303. Use last file you were editing
  304. -T turns on Line Trace
  305.  
  306. PBVER
  307. Returns the version number of PBASIC.
  308.  
  309. PEEK(address)
  310. Returns byte from SEG:address.
  311. SEG is set via DEF SEG.
  312.  
  313. PGLOAD filename
  314. Load a .PGC file into screen memory.
  315.  
  316. PGSAVE filename
  317. Save screen memory as a .PGC file.
  318.  
  319. PGSHOW filename, delay
  320. Load and Display a .PGC file.  Delay
  321. is seconds, 0 is a keypress.
  322.  
  323. PI
  324. Returns 3.14159.
  325. POINT(row,col)
  326. Returns value of pixel at row,col.
  327.  
  328. POKE      addr, exp
  329. Places value at SEG:addr. SEG is set via
  330. the DEF SEG statement.  If you are doing
  331. Video Memory, use REFRESH.
  332.  
  333. PORT
  334. Returns a 1 if running on a Portfolio,
  335. 0 if not.
  336.  
  337. Portfolio BASIC, version 4.1
  338. (c) 1991 BJ Gleason
  339. by BJ Gleason, American University
  340.  
  341. POS(exp)
  342. Returns the current cursor column.
  343. Exp is a dummy expression.
  344.  
  345. PRINTER
  346. All PRINT to the printer
  347. Will not wrap the output lines
  348.  
  349. PRINT[@l,] list of expressions
  350. [,] to tab, [;] or [ ]
  351. @l moves to position 0-319
  352.  
  353. PRINT #fileno, list of expressions
  354. Write data to a file.
  355.  
  356. PRINT[@l,] USING "format"; list of exp
  357. Display exp in format.  "%e" is scientific.
  358. "%.0f" is integer.
  359. @l moves to position 0-319
  360.  
  361. PRINT #fileno, USING "format", list of exp
  362. Write formatted data to file.
  363. "%7.2f" is two digits after decimal point
  364.  
  365. PRTSC
  366. Send copy to screen to printer
  367.  
  368. PSET      (row, col) [, exp]
  369. Set the pixel at row, col to exp.
  370. Port has mximum of 64x240
  371. Exp can be 0 (off) or 1 (on).
  372.  
  373. RAD(exp)
  374. Convert degrees to radians.
  375.  
  376. RANDOMIZE
  377. Initialize the random number generator.
  378.  
  379. RAND(exp)
  380. Return a number between 0 and exp-1.
  381. READ      list of variables
  382. Read the values of the variables from
  383. DATA statements.
  384.  
  385. REFRESH
  386. Copy video memory to the LCD controller
  387. PORT ONLY
  388.  
  389. REG rn, value
  390. Sets rn to value.  rn: 0=Flags, 1=AX,
  391. 2=BX, 3=CX, 4=DX, 5=SI, 6=DI
  392.  
  393. REG(rn)
  394. Returns rn value. rn: 0=Flags, 1=AX,
  395. 2=BX, 3=CX, 4=DX, 5=SI, 6=DI
  396.  
  397. REM
  398. Remark.  The rest of line is ignored.
  399. You can also use the quote (') mark
  400.  
  401. REPEAT ... UNTIL exp
  402. Repeat until exp is TRUE.
  403.  
  404. RESTORE   [line number]
  405. Sets data pointer to the specified
  406. line number.  If no line number is
  407. given, point to first data location.
  408.  
  409. RESUME    line number
  410. Resume at line number after an error.
  411.  
  412. RETURN
  413.  
  414. RIGHT$(x$,n)
  415. Returns rightmost n characters from x$.
  416.  
  417. RMDIR pathname
  418. Remove an empty directory from disk.
  419.  
  420. RND
  421. Return an number between 0 and 1.
  422.  
  423. ROMVER
  424. Return the version number of the ROM.
  425. PORT ONLY
  426.  
  427. RUN filename
  428. Load and execute filename.BAS.  All
  429. variables are lost.
  430.  
  431. RTRIM$(n$)
  432. Returns n$ with no trailing spaces.
  433.  
  434. SCREEN    exp
  435. 4   graphics  320x200
  436. 5   graphics  320x200
  437. 6   graphics  640x200
  438. 7   text      80x25
  439. 8   graphics  160x200
  440. 10   graphics  640x200
  441.  
  442. SCRLOAD n$(x)
  443. Load text screen from string array.
  444.  
  445. SCRSAVE n$(x)
  446. Save text screen to string array.  Each
  447. screen requires two strings a(0), a(1)
  448.  
  449. SGN(exp)
  450. Returns the sign of exp.
  451.  -1   exp < 0
  452.   0   exp = 0
  453.   1   exp > 0
  454.  
  455. SIN(exp)
  456. Returns sine of exp.
  457.  
  458. SINH(exp)
  459. Returns hyperbolic sine of exp.
  460.  
  461. SOUND     code, duration
  462. Duration is length of tone in 10 msec.
  463. PORT ONLY
  464. CODE      NOTE      Frequency (Hz)
  465. 48        D#5       622.3
  466. 49        E5        659.3
  467. 50        F5        698.5
  468. 51        F#5       740.0
  469. 52        G5        784.0
  470. 53        G#5       830.6
  471. 54        A5        880.0
  472. 55        A#5       932.3
  473. 56        B5        987.8
  474. 57        C6        1046.5
  475. 58        C#6       1108.7
  476. 41        D6        1174.7
  477. 59        D#6       1244.5
  478. 60        E6        1318.5
  479. 61        F6        1396.9
  480. 14        F#6       1480.0
  481. 62        G6        1568.0
  482. 44        G#6       1661.2
  483. 63        A6        1760.0
  484.  4        A#6       1864.7
  485.  5        B6        1975.5
  486. 37        C7        2093.0
  487. 47        C#7       2217.5
  488.  6        D7        2349.3
  489.  7        D#7       2489.0
  490.  
  491. SPACE$(n)
  492. Returns a string of n spaces.
  493.  
  494. SPC(n)
  495. Returns a string of n spaces.
  496.  
  497. SQR(exp)
  498. Returns Square Root of exp.
  499.  
  500. STATUS    exp
  501. Enable or disable the Status line.
  502. 0 for off, 1 for on.
  503. PORT ONLY
  504.  
  505. STOP
  506. Terminate and Display Line number.
  507. Point editor to location.
  508.  
  509. STRING$(n,m)
  510. Returns a string composed of n chars.
  511. The ASCII value of the character is m.
  512.  
  513. STR$(n)
  514. Returns string representation of n.
  515.  
  516. SWAP      varname, varname
  517. Exchange contents of the two vars.
  518.  
  519. SYSTEM
  520. Terminate the program.
  521.  
  522. TAB(n)
  523. In PRINT, move to column n.
  524.  
  525. TAN(exp)
  526. Returns tangent of exp.
  527.  
  528. TANH(exp)
  529. Returns hyperbolic tangent of exp.
  530.  
  531. TICK      exp
  532. Sets the Clock tick speed.
  533. 0 is Normal, 1 tick every 128 seconds.
  534. 1 is Fast, 1 tick every second.
  535. PORT ONLY
  536.  
  537. TIMER
  538. Returns number of seconds since midnight.
  539.  
  540. TIME$
  541. Returns the system time.
  542.  
  543. TROFF
  544. Disable line tracing.
  545.  
  546. TRON
  547. Enable line tracing.
  548.  
  549. TRUE
  550. Returns -1.
  551.  
  552. UCASE$(x)
  553. Returns the Uppercase version of x$
  554.  
  555. VAL(x$)
  556. Returns the numeric value of x$.
  557.  
  558. VARPTR(x)
  559. Returns the location of variable x.
  560.  
  561. VARSEG(x)
  562. Returns the segment of variable x.
  563.  
  564. VCSRLIN
  565. Returns the current virtual cursor line.
  566. PORT ONLY
  567.  
  568. VLOCATE   row,col
  569. Move the virtual cursor to row, col.
  570. This location is position 1,1 on the
  571. physical screen.
  572. PORT ONLY
  573.  
  574. VMOVE     dir, dis
  575. Move screen in direction dir, dis
  576. number of characters. Works only
  577. in Static and Tracked modes.
  578. 1=Up,2=Down,3=Left,4=Right.
  579. PORT ONLY
  580.  
  581. VPOS(exp)
  582. Returns current virtual cursor column.
  583. Exp is a dummy expression.
  584. PORT ONLY
  585.  
  586. WAIT
  587. Wait for a keypress.
  588.  
  589. WHILE exp ... WEND
  590. Execute statements while exp is TRUE.
  591.  
  592. WKSREAD(file, row, col)
  593. Return number from row, col of .WKS file
  594. 0,0 is A1.  1,27 is AB2.
  595.  
  596. WKSREAD$(file, row, col)
  597. Return string from row, col of .WKS file
  598. 0,0 is A1.  1,27 is AB2.
  599.  
  600. WKSTYPE(file, row, col)
  601. 1=EOF, 12=Blank, 13=Integer, 14=Real
  602. 15=Label (String), 16=Formula (Real)
  603. 0,0 is A1.  1,27 is AB2.
  604.  
  605. WRITE list of expressions
  606. Data is sperated by commas (,).
  607.  
  608. WRITE #fileno, list of expressions
  609. Data is send to a file, seperated by 
  610. commas (,).
  611. ə